<div class="n_to_one_relationship">
  <form id="rel_<%= @relationship_name %>_<%= @root.id %>">
	<input type="hidden" name="id" value="<%= @root.id %>">
	<input type="hidden" name="rel_name" value="<%= @relationship_name %>">
	<input type="hidden" name="klass" value="<%= @klass %>">
	<select name="item" id="item">
	  <%= unassigned_if_allowed(@model, @relationship_name.to_sym, @items) %>	
<% for item in @all_items %>
    <option <%= 'selected' if @items == item %> value="<%= item.id %>"><%= item.streamlined_name(@model_ui.relationships[@relationship_name.to_sym].view_def.fields) %></option>
<% end %>
   </select>
  </form>
<%= observe_form  "rel_#{@relationship_name}_#{@root.id}", 
				  :frequency => 0.5,
				  :url => {:action => 'update_n_to_one'},
				  :with => "foo = Form.serialize('rel_#{@relationship_name}_#{@root.id}')"%>
</div>